package cc.magicjson.synthesis.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * 用户类，包含用户基本信息和会员资源
 */
@Getter
@Setter
@ToString
public class User {
    private final String userId;
    private final String username;
    private int points; // 用户积分
    private final List<Coupon> coupons; // 用户拥有的优惠券

    public User(String userId, String username, int points, List<Coupon> coupons) {
        this.userId = userId;
        this.username = username;
        this.points = points;
        this.coupons = coupons;
    }


}
